package com.kgc.collection.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class SalesReceivable implements Serializable {

    private int id;
    private String docCode;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date docDate;
    private int cid;
    private int uid;
    private int did;
    private BigDecimal totalAmount;
    private BigDecimal receivedAmount;
    private BigDecimal balanceAmount;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date  dueDate;
    private int status;
    private String notes;
    private String createBy;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;
    private String updateBy;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date updateTime;
    private int isDelete;
    private BigDecimal settledAmount;
    private BigDecimal unsettledAmount;
    private String sourceSheet;
    private int typeId;
    private int typeColor;


    //以下为连表查出的属性
    private  String  uidStr;
    private  String  didStr;
    private  String  cidStr;

    public SalesReceivable() {
    }

    public SalesReceivable(int id, String docCode, Date docDate, int cid, int uid, int did, BigDecimal totalAmount, BigDecimal receivedAmount, BigDecimal balanceAmount, Date dueDate, int status, String notes, String createBy, Date createTime, String updateBy, Date updateTime, int isDelete, BigDecimal settledAmount, BigDecimal unsettledAmount, String sourceSheet, int typeId, int typeColor, String uidStr, String didStr, String cidStr) {
        this.id = id;
        this.docCode = docCode;
        this.docDate = docDate;
        this.cid = cid;
        this.uid = uid;
        this.did = did;
        this.totalAmount = totalAmount;
        this.receivedAmount = receivedAmount;
        this.balanceAmount = balanceAmount;
        this.dueDate = dueDate;
        this.status = status;
        this.notes = notes;
        this.createBy = createBy;
        this.createTime = createTime;
        this.updateBy = updateBy;
        this.updateTime = updateTime;
        this.isDelete = isDelete;
        this.settledAmount = settledAmount;
        this.unsettledAmount = unsettledAmount;
        this.sourceSheet = sourceSheet;
        this.typeId = typeId;
        this.typeColor = typeColor;
        this.uidStr = uidStr;
        this.didStr = didStr;
        this.cidStr = cidStr;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getDocCode() {
        return docCode;
    }

    public void setDocCode(String docCode) {
        this.docCode = docCode;
    }

    public Date getDocDate() {
        return docDate;
    }

    public void setDocDate(Date docDate) {
        this.docDate = docDate;
    }

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public BigDecimal getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(BigDecimal totalAmount) {
        this.totalAmount = totalAmount;
    }

    public BigDecimal getReceivedAmount() {
        return receivedAmount;
    }

    public void setReceivedAmount(BigDecimal receivedAmount) {
        this.receivedAmount = receivedAmount;
    }

    public BigDecimal getBalanceAmount() {
        return balanceAmount;
    }

    public void setBalanceAmount(BigDecimal balanceAmount) {
        this.balanceAmount = balanceAmount;
    }

    public Date getDueDate() {
        return dueDate;
    }

    public void setDueDate(Date dueDate) {
        this.dueDate = dueDate;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public int getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(int isDelete) {
        this.isDelete = isDelete;
    }

    public BigDecimal getSettledAmount() {
        return settledAmount;
    }

    public void setSettledAmount(BigDecimal settledAmount) {
        this.settledAmount = settledAmount;
    }

    public BigDecimal getUnsettledAmount() {
        return unsettledAmount;
    }

    public void setUnsettledAmount(BigDecimal unsettledAmount) {
        this.unsettledAmount = unsettledAmount;
    }

    public String getSourceSheet() {
        return sourceSheet;
    }

    public void setSourceSheet(String sourceSheet) {
        this.sourceSheet = sourceSheet;
    }

    public int getTypeId() {
        return typeId;
    }

    public void setTypeId(int typeId) {
        this.typeId = typeId;
    }

    public int getTypeColor() {
        return typeColor;
    }

    public void setTypeColor(int typeColor) {
        this.typeColor = typeColor;
    }

    public int getDid() {
        return did;
    }

    public void setDid(int did) {
        this.did = did;
    }

    public String getUidStr() {
        return uidStr;
    }

    public void setUidStr(String uidStr) {
        this.uidStr = uidStr;
    }

    public String getDidStr() {
        return didStr;
    }

    public void setDidStr(String didStr) {
        this.didStr = didStr;
    }

    public String getCidStr() {
        return cidStr;
    }

    public void setCidStr(String cidStr) {
        this.cidStr = cidStr;
    }

    @Override
    public String toString() {
        return "SalesReceivable{" +
                "id=" + id +
                ", docCode='" + docCode + '\'' +
                ", docDate=" + docDate +
                ", cid=" + cid +
                ", uid=" + uid +
                ", did=" + did +
                ", totalAmount=" + totalAmount +
                ", receivedAmount=" + receivedAmount +
                ", balanceAmount=" + balanceAmount +
                ", dueDate=" + dueDate +
                ", status=" + status +
                ", notes='" + notes + '\'' +
                ", createBy='" + createBy + '\'' +
                ", createTime=" + createTime +
                ", updateBy='" + updateBy + '\'' +
                ", updateTime=" + updateTime +
                ", isDelete=" + isDelete +
                ", settledAmount=" + settledAmount +
                ", unsettledAmount=" + unsettledAmount +
                ", sourceSheet='" + sourceSheet + '\'' +
                ", typeId=" + typeId +
                ", typeColor=" + typeColor +
                ", uidStr='" + uidStr + '\'' +
                ", didStr='" + didStr + '\'' +
                ", cidStr='" + cidStr + '\'' +
                '}';
    }
}
